package com.stockz.train.view.widget;

import java.awt.event.KeyEvent;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stockz.ui.swing.core.menu.MenuBar;
import com.stockz.ui.swing.widget.JMenu;

@Component
public class TrainingMenu extends JMenu implements InitializingBean{
	private static final long serialVersionUID = -6922339220223768991L;

	@Autowired
	private MenuBar menuBar;
	
	public TrainingMenu() {
		super("Training");
		setMnemonic(KeyEvent.VK_T);
	}
	
	@Override
	public void afterPropertiesSet() throws Exception {
		menuBar.add(this);
	}
	
}
